# apps/exam_papers/urls.py
"""
试卷模块 API 路由配置
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

# 创建路由器并注册视图集
router = DefaultRouter()

# 注册 ExamPaperViewSet，设置 basename 便于反向查找
router.register(
    r'exam-papers',
    views.ExamPaperViewSet,
    basename='exam-paper'
)

# 应用级 URL 模式
urlpatterns = [
    # 包含由路由器自动生成的所有标准及自定义路由
    path('', include(router.urls)),
]